home *** CD-ROM | disk | FTP | other *** search
-
- 'Copyright (c) 1987 Marcel Madonna
-
-
- '*****************************************************************************
-
-
- Def FnMod(A, B) 'A is target, B is mod
-
- ' The Quickbasic MOD works only with integers and it is sometimes handy to
- ' have this function for single precision numbers.
-
- Static C
- C = A
- While C >= B
- C = C - B
- Wend
- FnMod = C
-
- End Def
-